﻿<div class="pager">
	<?php if ($pager->haveToPaginate()): ?>
		<div class="pagination">
			<?php echo link_to('Primera', "home/search?page=1") ?>
			|
			<?php echo link_to('Anterior', "home/search?page=".$pager->getPreviousPage()) ?>
			|
			<?php foreach ($pager->getLinks() as $page): ?>
				<?php if ($page == $pager->getPage()): ?>
					<?php echo $page ?>
				<?php else: ?>
					<?php echo link_to($page, "home/search?page=".$page) ?>
				<?php endif; ?>
				|
			<?php endforeach; ?>
			<?php echo link_to('Siguiente', "home/search?page=".$pager->getNextPage()) ?>
			|
			<?php echo link_to('Última', "home/earch?page=".$pager->getLastPage()) ?>
		</div>
	<?php endif; ?>
	<div class="pagination_desc">
		<strong><?php echo count($pager) ?></strong> resultados 
		<?php if ($pager->haveToPaginate()): ?>
			- página <strong><?php echo $pager->getPage() ?>/<?php echo $pager->getLastPage() ?></strong>
		<?php endif; ?>
	</div>
</div>